/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoo.gamecenter.sdk.login.plugin.login.view;

import android.content.Context;
import android.graphics.Color;
import android.widget.LinearLayout.LayoutParams;
import android.widget.RelativeLayout;
import android.widget.RelativeLayout.LayoutParams;
import com.qihoo.gamecenter.sdk.login.plugin.component.ProgressView;
import com.qihoo.gamecenter.sdk.login.plugin.h.f;

public class ManualLoginProgress extends RelativeLayout implements d {
    private ProgressView a;
    private boolean b;

    public ManualLoginProgress(Context paramContext, String paramString) {
        super(paramContext);
        setLayoutParams(new RelativeLayout.LayoutParams(-1, -1));
        setBackgroundColor(Color.argb(80, 40, 40, 40));
        setGravity(17);
        setClickable(true);
        this.a = new ProgressView(paramContext);
        this.a.setLayoutParams(new LinearLayout.LayoutParams(f.a(paramContext, 320.0F), -2));
        addView(this.a);
        this.b = false;
    }

    public boolean c() {
        return this.b;
    }

    public void a(String paramString) {
        this.a.a();
        this.a.setViewTips(paramString);
        setVisibility(0);
        this.b = true;
    }

    public void a() {
        setVisibility(8);
        this.a.b();
        this.b = false;
    }

    public void b() {
        setVisibility(0);
    }
}